﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using RentalSystem.Data.EF;
using System.ComponentModel.DataAnnotations;

namespace Web.Models
{
    public class RegistryData
    {
        public Users User { get; set; }
        public Persons Person { get; set; }
        public Customers Customer { get; set; }

        [MinLength(6, ErrorMessage = "Długość hasła musi być większa niż 5 znaków")]
        [DataType(DataType.Password)]
        public string Password { get; set; }
        public bool IsWorker { get; set; }
    }
}